#include "stdafx.h"
#include "CppUnitTest.h"
#include "ImageCurator.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace ImageCuratorTest
{		
	TEST_CLASS(ImageCuratorLibTest)
	{
	private:
		ImageCurator * _lib;
	public:

		TEST_METHOD_INITIALIZE(InitImageCuratorLib)
		{
			_lib = new ImageCurator();
		}

		TEST_METHOD_CLEANUP(DeinitImageCuratorLib)
		{
			delete _lib;
		}
		
		TEST_METHOD(CreateImageCuratorTest)
		{
			Assert::IsNotNull(_lib);
		}

		TEST_METHOD(MxPluginManagerDetailsTest)
		{
			Assert::AreEqual("ImageCuratorLib", _lib->GetLibName());
			Assert::AreEqual("Library to support ImageCurator", _lib->GetLibDescription());
			Assert::AreEqual("1.0.0.1", _lib->GetLibVersion());
			Assert::AreEqual("Maximodex Limited", _lib->GetLibOwnerName());
			Assert::AreEqual("Copyright(c) Maximodex Limited.  All rights reserved.", _lib->GetLibCopyrightNotice());
			Assert::AreEqual("{34D303BA-40F0-431F-95B1-94533D9EB830}", _lib->GetLibInternalName());
			Assert::AreEqual("http://www.imagecurator.com", _lib->GetLibSupportSite());
			Assert::AreEqual("New BSD Licence", _lib->GetLibLicenseName());
			Assert::AreEqual("http://imagecurator.codeplex.com/license", _lib->GetLibLicenseURL());
			std::wstring pathfilename(_lib->GetLibPathFilename());
			Assert::IsTrue(pathfilename.find(L"ImageCurator.dll") != std::wstring::npos);
		}

	};
}